<?php
/**
 * Created by PhpStorm.
 * User: 10838
 * Date: 2017/11/3
 * Time: 16:06
 */
namespace app\index\model;

use think\Model;

class UserModel extends Model{
    protected $table = "dx_user";
    protected $pk = 'user_id';
    public function project()
    {
        return $this->hasMany('ProjectModel', 'user_id', 'user_id');
    }
}